package com.hutiao.snowhb.wechat.vo;

import org.jdom.Document;

/**
 * 回复文本消息
 * @author subob
 *
 */
public class WxSendTextMsg extends WxSendMsg {
	private String content;
	
	public WxSendTextMsg(WxSendMsg msg,String content) {
		super(msg);
		setMsgType("text");
		this.content = content;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Override
	public Document toDocument() {
		Document doc = super.toDocument();
		createCdataElement(doc.getRootElement(), "Content", getContent());
		return doc;
	}
	
	public static WxSendTextMsg defaultSendMsg(WxSendMsg msg) {
		String defaultText = "你好，我是湖北雪花啤酒，您任何疑问可以在此提出，谢谢。";
		return new WxSendTextMsg(msg, defaultText);
	}
}
